package capricornus.actor.attribute
{
	import capricornus.actor.events.ActorAttributeEvent;

	public class CharacterAttribute extends ActorMovableAttribute
	{
		private var _mountActionImagePath:String = "";       //坐骑动作图路径前缀
		private var _weaponActionImagePath:String = "";      //武器动作图路径前缀
		
		public function CharacterAttribute()
		{
			super();
		}
		
		public function get mountActionImagePath():String
		{
			return _mountActionImagePath;
		}
		
		public function get weaponActionImagePath():String
		{
			return _weaponActionImagePath;
		}
		
		public function setMountActionImagePath( value:String, sendEvent:Boolean ):void
		{
			if( _mountActionImagePath != value )
			{
				_mountActionImagePath = value;
				
				if( sendEvent ) dispatchEvent( new ActorAttributeEvent( ActorAttributeEvent.MOUNT_ACTION_IMAGE_PATH_CHANGED ) );
			}
		}
		
		public function setweaponActionImagePath( value:String, sendEvent:Boolean ):void
		{
			if( _weaponActionImagePath != value )
			{
				_weaponActionImagePath = value;
				
				if( sendEvent ) dispatchEvent( new ActorAttributeEvent( ActorAttributeEvent.WEAPON_ACTION_IMAGE_PATH_CHANGED ) );
			}
		}
	}
}